// 地球半径
export const EARTH_RADIUS = 6378137;
// 标准层高
export const ELEVATION = 2.8;

export const IS_NODE = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]' && !process.versions.electron && !process.versions.nw && !process.versions['node-webkit']

export const KEYS = {
  LEFT: 37,
  UP: 38,
  RIGHT: 39,
  BOTTOM: 40
}
export const CONTROL_STATE = {
  NONE: -1,
  ROTATE: 0,
  DOLLY: 1,
  PAN: 2,
  TOUCH_ROTATE: 3,
  TOUCH_DOLLY_PAN: 4
}
export const EPS = 0.000001
